<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片切换</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .ul1 {
            width: 1080px;
            height: 110px;
            align-items: center;
            margin: 0 auto;
            display: flex;
            justify-content: space-evenly;
            position: absolute;
            bottom: 120px;
            left: calc(50% - 540px);
            z-index: 100;
        }

        .ul1 img {
            margin: 5px;
            width: 164px;
            height: 82px;
            transition: all .2s;
            /*overflow: hidden;*/
        }

        .ul2 > :nth-child(1), .ul2 > :nth-child(2), .ul2 > :nth-child(3), .ul2 > :nth-child(4), .ul2 > :nth-child(5), .ul2 > :nth-child(6) {
            width: 100%;
            height: 80%;
            position: absolute;
            left: 0;
            top: 0;
            background-repeat: no-repeat;
            background-size: cover;
        }
        .ul2 > :nth-child(1){
            background-image: url("https://s.syzs.qq.com/syzs_cms/202302/d55f9e48bca699483e96fd31669eaf6b.jpeg");
        }
        .ul2 > :nth-child(2){
            background-image: url("https://s.syzs.qq.com/syzs_cms/202203/15462e47e792265e846322352b0f7e36.png");
        }
        .ul2 > :nth-child(3){
            background-image: url("https://s.syzs.qq.com/syzs_cms/202206/f10ddae2522620f5ec217a6f6b90f48e.jpeg");
        }
        .ul2 > :nth-child(4){
            background-image: url("https://s.syzs.qq.com/syzs_cms/202104/1f2l5gsht0.82nr072grjg.jpeg");
        }
        .ul2 > :nth-child(5){
            background-image: url("https://s.syzs.qq.com/syzs_cms/202211/07f0f5c4e3c2ed71df6bb1892d1a168b.jpeg");
        }
        .ul2 > :nth-child(6){
            background-image: url("https://s.syzs.qq.com/syzs_cms/202204/045e4057d052ace79a585b9f95b2fd66.jpeg");
        }


        #a:checked ~ .ul1 > :nth-child(1) img,#b:checked ~ .ul1 > :nth-child(2) img, #c:checked ~ .ul1 > :nth-child(3) img, #d:checked ~ .ul1 > :nth-child(4) img, #e:checked ~ .ul1 > :nth-child(5) img, #f:checked ~ .ul1 > :nth-child(6) img {
            width: 220px;
            height: 110px;
        }

        #a:checked ~ .ul2 > :nth-child(1), #b:checked ~ .ul2 > :nth-child(2), #c:checked ~ .ul2 > :nth-child(3), #d:checked ~ .ul2 > :nth-child(4), #e:checked ~ .ul2 > :nth-child(5), #f:checked ~ .ul2 > :nth-child(6) {
            z-index: 50;
        }
        input{
            display: none;
        }
    </style>
</head>
<body>
<div>
    <input id="a" name="a" type="radio"/>
    <input id="b" name="a" type="radio"/>
    <input id="c" name="a" type="radio"/>
    <input id="d" name="a" type="radio"/>
    <input id="e" name="a" type="radio"/>
    <input id="f" name="a" type="radio"/>
    <ul class="ul1">
        <li>
            <label for="a">
                <img src="https://s.syzs.qq.com/syzs_cms/202302/d55f9e48bca699483e96fd31669eaf6b.jpeg">
            </label>
        </li>
        <li>
            <label for="b">
                <img src="https://s.syzs.qq.com/syzs_cms/202203/79a7bc4b43be7745fa63053bf31d7f03.jpeg">
            </label>
        </li>
        <li>
            <label for="c">
                <img src="https://s.syzs.qq.com/syzs_cms/202206/f10ddae2522620f5ec217a6f6b90f48e.jpeg">
            </label>
        </li>
        <li>
            <label for="d">
                <img src="https://s.syzs.qq.com/syzs_cms/202104/1f2l5gvnj0.35duvhv8d08.jpeg">
            </label>
        </li>
        <li>
            <label for="e">
                <img src="https://s.syzs.qq.com/syzs_cms/202211/07f0f5c4e3c2ed71df6bb1892d1a168b.jpeg">
            </label>
        </li>
        <li>
            <label for="f">
                <img src="https://s.syzs.qq.com/syzs_cms/202204/1b03973a3bf388d0ff850b48d65af08f.jpeg">
            </label>
        </li>
    </ul>
    <ul class="ul2">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
</div>
</body>
</html>